
<table>
	<tr>
		<td width="20%" align="right">流水号：</td>
		<td width="30%">{[$result.id]}（{[$result.oper_t]}）</td>
		<td width="20%" align="right">状态：</td>
		<td width="30%">{[$result.status_t]}</td>
	</tr>
	<tr>
		<td align="right">采购员：</td>
		<td>{[$result.emp_t]}</td>
		<td align="right">采购单：</td>
		<td>{[$result.purchase]}</td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td>{[$result.name]}({[$result.id]})</td>
		<td align="right">材料：</td>
		<td>{[$result.material]}</td>
	</tr>
	<tr>		
		<td align="right">规格：</td>
		<td colspan="3">{[$result.standard]}</td>		
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3">{[$result.content|nl2br]}</td>
	</tr>	
</table>

<fieldset><legend>入库信息</legend>
<form id="form_add">
<input type="hidden" name="id" value="{[$smarty.request.id]}" />
<input type="hidden" name="supplier" value="{[$result.supplier]}" />
<input type="hidden" name="amount" id="amount" value="{[$result.amount]}" />
<input type="hidden" name="amount2" id="amount2" value="{[$result.amount2]}" />
<table>
	<tr>
		<td width="20%" align="right">入库员：</td>
		<td width="30%"><input type="text" name="emp" id="emp" size="12" value="{[$smarty.session.id]}:{[$smarty.session.name]}" title="{[$t.emp_|emp:'入库员']}">
		<input type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" checked> 自己</td>
		<td width="20%" align="right">入库日期：</td>
		<td width="30%"><input type="text" name="date" id="date" size="12" value="{[$smarty.now|date_format:'%Y-%m-%d']}"></td>
	</tr>
	<tr>
		<td align="right">送货单：</td>
		<td><input type="text" name="number" id="number" size="20" value=""></td>
		<td align="right">订购单：</td>
		<td><input type="text" name="purchase" id="purchase" size="12" value="{[$result.purchase]}" disabled></td>
	</tr>
	<tr>
		<td align="right">数量：</td>
		<td><input type="text" name="amount4" id="amount4" size="12" value="{[$result.amount-$result.amount3]}" title="请输入本次入库的数量"> {[$result.unit]}</td>
		<td align="right">未入库：</td>
		<td><input type="text" name="amount5" id="amount5" size="12" value="{[$result.amount-$result.amount3]}" disabled></td>
	</tr>
	{[if $result.unit neq $result.unit2]}
	<tr>
		<td align="right">重量：</td>
		<td colspan="3"><input type="text" name="amount3" id="amount3" size="12" value="{[$result.amount2]}" title=""> {[$result.unit2]}</td>
	</tr>
	{[else]}
	<input type="hidden" name="amount3" id="amount3" size="12" value="{[$result.amount2]}" title="">
	{[/if]}
	<tr>
		<td align="right">仓库：</td>
		<td colspan="3"><input type="text" name="place" id="place" size="12" value=""> <select name='place_t' id='place_t'>
			{[html_options options=$place_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" id="content" cols="55"></textarea></td>
	</tr>
</table>
</form>
</fieldset>

<script type="text/javascript"
	src="js/material/in/record/in.js?r={[$smarty.now]}"></script>
